package com.mycompany.inventory.pojo;

import java.sql.Date;

public class CreditCard {
	private String Id;
	private Card card;
	private String cardType;
	private String cardNumber;
	private Date expirationTime;
	private String securityCode;

	public CreditCard(String id, String cardType, String cardNumber, Date expirationTime, String securityCode) {
		this.setId(id);
		this.setCardType(cardType);
		this.setCardNumber(cardNumber);
		this.setExpirationTime(expirationTime);
		this.setSecurityCode(securityCode);
	}

	public CreditCard() {
		this.setId("");
		this.setCardType("");
		this.setCardNumber("");
		this.setExpirationTime(null);
		this.setSecurityCode("");
	}
	
	public void clear(){
		this.setId("");
		this.setCardType("");
		this.setCardNumber("");
		this.setExpirationTime(null);
		this.setSecurityCode("");
	}
	
	public void copyValue(CreditCard credit){
		this.setId(credit.getId());
		this.setCardType(credit.getCardType());
		this.setCardNumber(credit.getCardNumber());
		this.setExpirationTime(credit.getExpirationTime());
		this.setSecurityCode(credit.getSecurityCode());
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return Id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		Id = id;
	}

	/**
	 * @return the cardType
	 */
	public String getCardType() {
		return cardType;
	}

	/**
	 * @param cardType the cardType to set
	 */
	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	/**
	 * @return the cardNumber
	 */
	public String getCardNumber() {
		return cardNumber;
	}

	/**
	 * @param cardNumber the cardNumber to set
	 */
	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	/**
	 * @return the expirationTime
	 */
	public Date getExpirationTime() {
		return expirationTime;
	}

	/**
	 * @param expirationTime the expirationTime to set
	 */
	public void setExpirationTime(Date expirationTime) {
		this.expirationTime = expirationTime;
	}

	/**
	 * @return the securityCode
	 */
	public String getSecurityCode() {
		return securityCode;
	}

	/**
	 * @param securityCode the securityCode to set
	 */
	public void setSecurityCode(String securityCode) {
		this.securityCode = securityCode;
	}

	
}
